package cn.shengongying.service;

import cn.shengongying.model.BossOrder;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 雇主订单信息 服务类
 * </p>
 *
 * @author RXK
 * @since 2022-01-05
 */
public interface IBossOrderService extends IService<BossOrder> {

    void logicDelete(Long id);

    List<BossOrder> pageList(Long userId, Integer offset, Integer pageSize);

    void updateStatus(Long orderId, int status);

    BossOrder findByOrderNo(String orderNo);

    void updateInvoiceStatus(Long id, int invoiceStatus);

    List<BossOrder> listAndPage(int start, int length);

    long countRefundOrder();

    void updateRefundInfo(BossOrder bossOrder);

    void updateByOrderNo(String outTradeNo, int status, Date successDate);

    List<BossOrder> findInvoiceList(int start, int length);

    long countInvoice();
}
